import { defineStore } from 'pinia';
import { UserInfo } from '@/types/api/login';
import Cookies from 'js-cookie';

export interface UserStore {
    token?: string;
    userInfo?: Partial<UserInfo>;
}
export const useStore = defineStore('user', {
    state: (): UserStore => {
        return { token: undefined, userInfo: undefined };
    },
    getters: {},
    actions: {},
});
